
import streamlit as st
import home
import lianban
import shenqi_9_zhuan
import chuizixian_fenxi
import jingjia
import fund_flow
import gainian_gegu
import zuigao_lianban
import bankuai_zhangdie
import duanxian_fupan_job
import kdj_gongzhen_fenxi
import xinwen_jiexi
import chunjie_lishi_fenxi
import k_jishuzhibiao
import gailian_zhishu
import shangzheng_hist_fenxi
import shangzheng_yue_hist_fenxi

#st.set_page_config(page_title="股票分析应用")
# 页面配置
st.set_page_config(
    page_title="股票分析应用",
    page_icon="📈",
    layout="wide",
    initial_sidebar_state="expanded"
)

PAGES = {
    "主页": home,
    "涨停分析": lianban,
    "竞价分析": jingjia,  
    "高标分析": zuigao_lianban,
    "短线复盘分析": duanxian_fupan_job,
    "锤子线分析": chuizixian_fenxi,
    "均线分析": shenqi_9_zhuan,
    "KDJ多周期共振系统": kdj_gongzhen_fenxi,
    "k线技术指标分析": k_jishuzhibiao,
    "概念指数分析": gailian_zhishu,
    "概念个股周期分析": gainian_gegu,
    "板块周期分析": bankuai_zhangdie,
    "资金流向分析": fund_flow,
    "春节行情历史数据": chunjie_lishi_fenxi,
    "新闻热点分析": xinwen_jiexi,
    "上证指数历年月度分析": shangzheng_hist_fenxi,
    "上证指数历年某月分析": shangzheng_yue_hist_fenxi,
}

def main():
    st.sidebar.title("股票分析导航")
    selection = st.sidebar.radio("跳转到", list(PAGES.keys()))

    page = PAGES[selection]
    page.app()

if __name__ == "__main__":
    main()